Skip to content

Suggest specifying font-size and margin-block on h1 #37827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

zcorpan
Copy link
Contributor

@zcorpan zcorpan commented Jan 27, 2025

See whatwg/html#7867

Description

Add a new section to help developers avoid the special h1 in section default styling.

Motivation

We're trying to remove the special default styling in the spec and in Firefox. Devtools will have a warning, but the warning should have a link to help developers know what to do and why. My plan is to link to this new section.

Additional details

https://bugzilla.mozilla.org/show_bug.cgi?id=1937568

Related issues and pull requests

@zcorpan zcorpan requested a review from a team as a code owner January 27, 2025 14:02
@zcorpan zcorpan requested review from chrisdavidmills and removed request for a team January 27, 2025 14:02
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs size/s [PR only] 6-50 LoC changed labels Jan 27, 2025
Copy link
Contributor

github-actions bot commented Jan 27, 2025

Preview URLs

External URLs (2)

URL: /en-US/docs/Web/HTML/Element/Heading_Elements
Title: <h1>–<h6>: The HTML Section Heading elements

(comment last updated: 2025-01-29 09:56:16)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

language and link suggestions

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zcorpan couple more quick comments for you. Thanks for making this update!

zcorpan and others added 2 commits January 28, 2025 21:47
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Simon Pieters <zcorpan@gmail.com>
Copy link
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM2; thanks @zcorpan!

@chrisdavidmills chrisdavidmills merged commit 28b9521 into mdn:main Jan 29, 2025
8 checks passed
zcorpan added a commit to zcorpan/content that referenced this pull request Jan 30, 2025
Josh-Cena pushed a commit that referenced this pull request Jan 30, 2025
@Josh-Cena Josh-Cena mentioned this pull request Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants